﻿using System;
using System.Collections.Generic;
using System.Linq;

using System.Diagnostics.Contracts;
using System.Data;
using System.Web.Script.Serialization;

namespace Kooboo.Commerce.Repositories
{
    using Kooboo.Collections;
    using System.Web;
    using System.Web.Caching;
    using System.Xml.Linq;
    using System.IO;
    using System.Xml;
    using System.Xml.Serialization;
    using System.Text;
    using Kooboo.Commerce.Exceptions;
    using System.ComponentModel.Composition;
    using Kooboo.IoC;

    
    public partial class EntityRepositories 
    {
        public EntityRepositories()
        {
            this.DataReaderContext = ContextContainer.Current.Resolve<DataWriterContext>();

            this.DataWriterContext = this.DataReaderContext;
           // this.DataWriterContext = ContextContainer.Current.Resolve<DataReaderContext>();

        }

        #region Helper


        CommerceDataContext DataReaderContext
        {

            get;
            set;
        }


        CommerceDataContext DataWriterContext
        {
            get;
            set;
        }

        #endregion

     

        
    }
}
